package com.fone.player.client;

import java.util.List;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;


@Root(strict = false)
public class NetPlayRst extends Rst{
	
	@Root(strict = false)
	public static class FragList{
		
		@Attribute(required = false)
		public long t;
		
		/* cookie-method  use/get */
		@Attribute(required = false)
		public String cm;
		
		/* cookie-value */
		@Attribute(required = false)
		public String cv;
		
		@ElementList(inline = true, entry = "frag", required = false)
		public List<Frag> fragList;

		@Override
		public String toString() {
			return "FragList [t=" + t + ", fragList=" + fragList + "]";
		}
		
	}

	@Root(strict = false)
	public static class Frag {
		/** url */
		@Attribute(required=false)
		public String url;

		/** 时长 */
		@Attribute(required = false)
		public long t;

		@Override
		public String toString() {
			return "Frag [url=" + url + ", t=" + t + "]";
		}
		
	}


	@Element (required=false)
	public FragList fraglist;


	@Override
	public String toString() {
		return "NetPlayRst [fraglist=" + fraglist + "]";
	}
	
	
}
